package com.showboom.elauncher;

import android.app.Application;
import android.app.Dialog;
import android.content.Context;
import android.content.Intent;
import android.os.AsyncTask;
import android.os.Handler;
import android.util.Log;

import com.showboom.elauncher.services.HeartService;
import com.showboom.elauncher.util.HmSharedPreferencesUtils;
import com.showboom.elauncher.util.HttpUtils;
import com.showboom.elauncher.util.Util;

import org.json.JSONException;
import org.json.JSONObject;

import java.util.HashMap;
import java.util.Map;

public class MyAppliacation extends Application {

    public static Context context;
    private static Handler handler;
    public static boolean signinStatus = false;
    public static boolean authStatus = false;

    public static Handler getHandler() {
        return handler;
    }

    public static void setHandler(Handler handler) {
        MyAppliacation.handler = handler;
    }

    @Override
    public void onCreate() {
        super.onCreate();
        context = getApplicationContext();
        startService(new Intent(this, HeartService.class));
        signinStatus = (boolean) HmSharedPreferencesUtils.getParam("signin", false);
        authStatus = (boolean) HmSharedPreferencesUtils.getParam("authentication", false);
    }


}
